package com.atguigu.day12.comparator06.dog;

import java.util.Comparator;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/13 16:36
 * @注释
 */
class DogTest implements Comparator<Dog> {


    @Override
    public int compare(Dog o1, Dog o2) {
        return o1.age - o2.age;
    }
}
